steam_clear_achievement


Description

With this function you can tell the Steam API to clear (reset) a specific achievement. The achievement should have been previously defined on the Steamworks control panel accounts page for your game and the string that is passed to the function should match that used as the API Name on the control panel.


Syntax:

steam_clear_achievement(ach_name);

Argument Description
ach_name The name of the achievement to clear (string).


Returns:

N/A


Example:

if mouse_check_button_pressed(mb_left)
    {
    steam_clear_achievement("Ach_Game_Win");
    steam_clear_achievement("Ach_Died_10_Times");
    steam_clear_achievement("Ach_Killed_100_Enemies");
    steam_clear_achievement("Ach_Beat_Boss_Level_1");
    }

The above code will reset the achievements of the game when the user clicks the left mouse button.